package com.example.biz.user.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.biz.user.IUserBiz;
import com.example.dao.user.IUserDao;
import com.example.entity.user.User;
import com.jueyue.dao.util.MapUtil;

@Service(value="userBiz")
public class UserBizImpl implements IUserBiz {
	
	@Autowired
	private IUserDao userDao;

	@Override
	public User getUserById(String id) {
		
		return userDao.getUserById(id);
	}

	@Override
	public User getUserByIdAndAge(String id, int age) {
		return userDao.getUserByIdAndAge(id,age);
	}

	@Override
	public List<User> queryAllMan() {
		return userDao.queryAllBySex(1);
	}

}
